home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWViews / FWALisBx.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  52 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWALisBx.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. // We separate the archiving functions into their own translation units in order to
  10. // enable dead-stripping.
  11.  
  12. #include "FWFrameW.hpp"
  13.  
  14. #ifndef FWLISTBX_H
  15. #include "FWListBx.h"
  16. #endif
  17.  
  18. #ifdef FW_BUILD_MAC
  19. #pragma segment fwgadgts
  20. #endif
  21.  
  22. //========================================================================================
  23. // CLASS FW_CListBox
  24. //========================================================================================
  25.  
  26. const FW_ClassTypeConstant FW_LListBox = FW_TYPE_CONSTANT('l','b','o','x');
  27. FW_REGISTER_ARCHIVABLE_CLASS(FW_LListBox, FW_CListBox, FW_CListBox::Create, FW_CView::Read, FW_CListBox::Destroy, FW_CView::Write)
  28.  
  29. //----------------------------------------------------------------------------------------
  30. //    FW_CListBox::Create
  31. //----------------------------------------------------------------------------------------
  32.  
  33. void* FW_CListBox::Create(FW_CReadableStream& stream, FW_ClassTypeConstant type)
  34. {
  35. FW_UNUSED(stream);
  36. FW_UNUSED(type);
  37.     FW_SOMEnvironment ev;
  38.     return FW_NEW(FW_CListBox, (ev));
  39. }
  40.  
  41. //----------------------------------------------------------------------------------------
  42. //    FW_CListBox::Destroy
  43. //----------------------------------------------------------------------------------------
  44.  
  45. void FW_CListBox::Destroy(void* object, FW_ClassTypeConstant type)
  46. {
  47. FW_UNUSED(type);
  48.     FW_CListBox* self = (FW_CListBox*) object;
  49.     delete self;
  50. }
  51.  
  52.